import axios from "../utils/request";
//获取双方关注关系
export const $getFollow=async (params)=>{
    let {data}=await axios.get('follow/relationship',{params:params});
    return data;
}
//取消关注
export const $cancelFollow=async(params)=>{
    let {data}=await axios.post('follow/unfollow',params);
    return data;
}
//点击关注
export const $handleFollow=async(params)=>{
    let {data}=await axios.post('follow/follow',params);
    return data;
}
//显示关注人数和关注者人数
export const $getFollowCount=async (params)=>{
    let {data}=await axios.get('follow/showCountFollowAndFan',{params:params});
    return data;
}
//获取他人帖子数据
export const $getOtherPosts=async(params)=>{
    let {data}=await axios.get('post/showOtherPosts',{params:params});
    return data;
}
//获取用户标签
export const $getTagList=async (params)=>{
    let {data}=await axios.get('tag/showTagForStudent',{params:params});
    return data;
}